﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ShipmentList.aspx.cs" Inherits="ShipmentList" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script type="text/javascript" src="Js/jquery.js"></script>
    <script type="text/javascript" src="Js/ui.datetimepicker.js"></script>
    <link type="text/css" href="CSS/dark.datetimepicker.css" rel="stylesheet" />

    <script type="text/javascript">
          $(document).ready(function(){
            $('#ctl00_content_txtStartDate').datetimepicker();
            $('#ctl00_content_txtEndDate').datetimepicker();
          });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" Runat="Server">
<table style="width: 98%;" cellpadding="5px">
        <tr align="left">
            <td >
                <asp:Label ID="Label1" runat="server" Text="产品名称："></asp:Label>
                <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtName"
                    ErrorMessage="*"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr align="left">
            <td>
                <asp:Label ID="Label2" runat="server" Text="起始日期："></asp:Label>
                <asp:TextBox ID="txtStartDate" runat="server"></asp:TextBox>
                &nbsp;&nbsp;
                <asp:Label ID="Label3" runat="server" Text="结束日期："></asp:Label>
                <asp:TextBox ID="txtEndDate" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr align="left">
            <td colspan="4">
                <asp:Button ID="btnQuery" runat="server" Text="查询" CssClass="NormalButtom" OnClick="btnQuery_Click" />
                &nbsp;&nbsp;&nbsp;
            </td>
        </tr>
        <tr>
            <td colspan="4">
                <asp:GridView ID="gvShipments" runat="server" AutoGenerateColumns="False" 
                    CellPadding="4" ForeColor="#333333" GridLines="None" 
                    onrowdatabound="gvShipments_RowDataBound">
                    <RowStyle BackColor="#EFF3FB" />
                    <Columns>
                        <asp:BoundField DataField="Product_Name" HeaderText="产品名称" />
                        <asp:BoundField DataField="Cur_Warehouse" HeaderText="仓库" />
                        <asp:BoundField DataField="Cur_location" HeaderText="仓位" />
                        <asp:BoundField DataField="cur_bin" HeaderText="储位" />
                        <asp:BoundField DataField="Qty" HeaderText="数量" />
                        <asp:BoundField DataField="Movement_Type" HeaderText="出库类型" />
                        <asp:BoundField DataField="User" HeaderText="操作人员" />
                        <asp:BoundField DataField="DateTime" HeaderText="时间" />
                    </Columns>
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#2461BF" />
                    <AlternatingRowStyle BackColor="White" />
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>

